public class Demo1 {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt;
        int sumji = 0;
        int sumou = 0;
        for(int i = 1; i <= 100; i++)
        {
            int s = i;
            if(i % 2 == 0)
            {
                sumou += s;
            }
            else if(i % 2 == 1)
            {
                sumji += s;
            }
        }
        System.out.println(sumou);
        System.out.println(sumji);

    }
}
